<?php

namespace backend\assets;

use yii\web\AssetBundle;

/**
 * Main frontend application asset bundle.
 */
class FancyBoxAsset extends AssetBundle
{
    public $basePath = '@webroot';
    public $baseUrl = '@web/statics/library/fancybox/';
    public $css = [
        'source/jquery.fancybox.css',
    ];
    public $js = [
        'source/jquery.fancybox.js',
    ];

    public $depends = [
        'yii\web\JqueryAsset'
    ];

    public $jsOptions = [
        'position' => \yii\web\View::POS_HEAD,   // 这是设置所有js放置的位置
    ];
}
